package com.zb.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zb.entity.ZjProductBoomChild;
import com.zb.vo.ProductBoomCountVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 产品boom子件表 Mapper 接口
 * </p>
 *
 * @author WEN
 * @since 2023-08-22
 */
@Repository
public interface ZjProductBoomChildMapper extends BaseMapper<ZjProductBoomChild> {

    /**
     * 根据产品BoomID获取子件数量
     * @param productBoomIds 产品BoomID
     * @return
     */
    List<ProductBoomCountVo> getCountByProductBoomIds(@Param("productBoomIds") List<Long> productBoomIds);
}
